const objArr=[{
    name:'刘天童',
    pass:true
},
{
    name:'于一凡',
    pass:true
}]

const str =JSON.stringify(objArr);
console.log(str);
// console.log(JSON.parse(str)[0]);
localStorage.setItem("xueyuan",str);